import { config, request } from 'utils'

const { api } = config
const {
    Users,
    currentUser,
    notices,
} = api

export async function query() {
  return request(Users);
}
export async function queryCurrent() {
  return request(currentUser);
  // return {name: '小王',
  //   avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
  //   userid: '00000001',
  //   email: 'antdesign@alipay.com',
  //   signature: '海纳百川，有容乃大',
  //   title: '交互专家'}
}
export async function queryNotices() {
  return request(notices);
}
